from osv import fields,osv
import mx.DateTime
import tools.sql
from tools.translate import _

class kdvn_project_summary_view(osv.osv):
    _name='kdvn.project.summary.view'
    _description='KDVN Project Summary View'
    _auto=False
    _columns={
            'prj_claim_amount_vnd':fields.float('Claim VND'),    
            'prj_claim_amount_usd':fields.float('Claim USD'),
            
            'prj_recv_amount_vnd':fields.float('Received VND'),            
            'prj_recv_amount_usd':fields.float('Received USD'),
            
            'project_amount_vnd':fields.float('Project Amt. VND'),
            'project_vat_vnd':fields.float('Project VAT VND'),
            'project_total_vnd':fields.float('Project Total VND'),
            
            'project_amount_usd':fields.float('Project Amt. USD'),
            'project_vat_usd':fields.float('Project VAT USD'),
            'project_total_usd':fields.float('Project Total USD'),
            
            'project_budget_total_vnd':fields.float('Budget VND'),
            'project_budget_total_usd':fields.float('Budget USD')
              }
kdvn_project_summary_view()

class kdvn_project(osv.osv):
    _name = "kdvn.project"
    _inherit = "kdvn.project"
  
    _columns={
             'project_summary_view_ids':fields.one2many('kdvn.project.summary.view','id','Project Summary View'),
             }
kdvn_project()